from django.db import models


class User(models.Model):
    class META:
        db_table = "user"

    id = models.AutoField(primary_key=True, auto_created=True)
    username = models.CharField(max_length=30)
    password = models.CharField(max_length=128)
    role = models.CharField(max_length=20)

    def __str__(self):
        return "<username:{},role:{}>".format(self.username, self.role)


